package com.bckj.fastboot.paid.biz.domain.pay.provider;

import com.bckj.fastboot.paid.biz.domain.pay.gateway.RefundGateway;

import java.util.HashMap;
import java.util.Map;

public class RefundGatewayProvider {

    public static final Map<String, RefundGateway> REFUND_GATEWAY_MAP = new HashMap<>();

    public static void register(String refundWay, RefundGateway refundGateway) {
        REFUND_GATEWAY_MAP.put(refundWay, refundGateway);
    }

    public static RefundGateway get(String refundWay) {
        return REFUND_GATEWAY_MAP.get(refundWay);
    }
}
